@use '../variables';
@use '../mixins';

@include mixins.b(anchor) {
  position: relative;
  padding: 0;
  margin: 0;
  list-style: none;

  @include mixins.font-size(0.9125rem);

  @include mixins.e(link) {
    color: var(--#{variables.$prefix}color-text);

    &:hover {
      color: var(--#{variables.$prefix}color-light-primary);
    }

    @include mixins.when(active) {
      color: var(--#{variables.$prefix}color-primary);
    }

    a {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      min-height: 28px;
      font: inherit;
      color: inherit;
      text-decoration: none;
      overflow-wrap: break-word;
      transition: color var(--#{variables.$prefix}animation-duration-base) linear;
    }
  }

  @include mixins.e(indicator-track) {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    pointer-events: none;
    background-color: var(--#{variables.$prefix}background-color-indicator);
  }

  @include mixins.e(indicator-wrapper) {
    position: absolute;
    left: 1px;
    z-index: 5;
    opacity: 0;
    transition:
      top var(--#{variables.$prefix}animation-duration-slow) linear,
      opacity var(--#{variables.$prefix}animation-duration-base) linear;
    transform: translate(-50%, -50%);
  }

  @include mixins.e(dot-indicator) {
    width: 8px;
    height: 8px;
    background-color: var(--#{variables.$prefix}background-color);
    border: 2px solid var(--#{variables.$prefix}color-primary);
    border-radius: 50%;
  }

  @include mixins.e(line-indicator) {
    width: 2px;
    height: 20px;
    background-color: var(--#{variables.$prefix}color-primary);
  }
}
